package top.maof.book.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.maof.book.model.Chapter;
import top.maof.book.result.PageData;
import top.maof.book.result.PageWrap;

/**
 * Created by CodeX4J.
 */

public interface ChapterService extends IService<Chapter> {
    public PageData<Chapter> findPage(PageWrap<Chapter> pageWrap);

    public int add(Chapter chapter);

    public Chapter find(long id);

    public int update(Chapter chapter);

    public int delete(long id);

    Chapter findByUrl(String url);

    int updateByPrimaryKeySelective(Chapter record);
}
